package com.isoft.data.dao;

import com.isoft.data.xml.Blls;
import com.isoft.data.xml.BllsdfltBelt;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BllsDao {
    @Insert("insert into BLLS(SEQN,DDTM,FLID,FFID,FIDE,FATT)" +
            "VALUES(#{blls.meta.seqn},#{blls.meta.ddtm},#{blls.dflt.flid},#{blls.dflt.ffid}" +
            ",#{blls.dflt.fide},#{blls.dflt.fatt})")
    void addBlls(@Param("blls") Blls blls);
    @Insert("insert into BLLS_BELT(SEQN,DDTM,BTNO,PID,CODE,BTAT,ESTR,EEND,RSTR,REND,BTSC) " +
            "VALUES(#{blls.meta.seqn},#{blls.meta.ddtm},#{b.btno},#{b.id},#{b.code}" +
            ",#{b.btat},#{b.estr},#{b.eend},#{b.rstr},#{b.rend},#{b.btsc})")
    void addBllsdfltBelt(@Param("blls") Blls blls,@Param("b") BllsdfltBelt b);


}
